package com.example.filter;

/**
// * 自定义Filter类
// * 
// * @author Tanlian
// * @create 2018-11-15 23:02
// **/
////@Configuration
//public class WebConfiguration {
//
//	@Bean
//	public <RemoteIpFilter> RemoteIpFilter remoteIpFilter() {
//		return new RemoteIpFilter();
//	}
//
//	@Bean
//	public FilterRegistrationBean filterRegistration() {
//		FilterRegistrationBean registration = new FilterRegistrationBean();
//		registration.setFilter(new MyFilter());
//		registration.addUrlPatterns("/*");
//		registration.addInitParameter("paramName", "paramValue");
//		registration.setName("MyFilter");
//		registration.setOrder(1);
//		return registration;
//	}
//}
